package com.example.shopp_2301.pay

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.example.base.mvvm.BaseViewActivity
import com.example.shopp_2301.R
import com.example.shopp_2301.databinding.ActivityPayResultBinding

@Route(path = "/app/PayResultActivity")
class PayResultActivity : BaseViewActivity<ActivityPayResultBinding>() {
    @Autowired
    @JvmField
    var payResult = ""
    override fun initView() {
        ARouter.getInstance().inject(this)

        binding.tvResult.text = payResult
        binding.tvGoCar.setOnClickListener {
            ARouter.getInstance().build("/app/ShopActivity").withInt("position",2).navigation()
        }
        binding.tvMine.setOnClickListener {
            ARouter.getInstance().build("/app/ShopActivity").withInt("position",3).navigation()
        }
    }

    override fun initData() {

    }

    override fun getLayout(): Int {
        return R.layout.activity_pay_result
    }

}